const globalData = {}

export function set(key, val) {
    globalData[key] = val
}

export function get(key) {
    return globalData[key]
}

/**
 * 随后就可以在任意位置进行使用啦
import { set as setGlobalData, get as getGlobalData } from './path/name/global_data'
setGlobalData('test', 1)
getGlobalData('test')
 */
